﻿<%@ Page Title="HSDX" Language="C#" MasterPageFile="~/main/masterpage/main_level1.Master"
    AutoEventWireup="true" CodeBehind="dsbangkhaosatdaxoa.aspx.cs" Inherits="nkstdgia.main.dsbangkhaosatdaxoa" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<%@ Register Assembly="wsRK.wsControls" Namespace="wsRK.wsControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phd_content" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="webapplication_form_header">
                <div class="left">
                    <h1>
                        <asp:Label ID="lblTitle" runat="server">Tìm kiếm bảng khảo sát đã xóa</asp:Label>
                    </h1>
                </div>
            </div>
            <table class="option_table">
                <tr>
                    <td style="width: 50%">
                        <div class="left textright option_table_td_100" style="margin-right: 10px">
                            <span>Phiếu số</span>
                        </div>
                        <div class="left">
                            <asp:TextBox ID="txtPhieuSo" runat="server" Width="100px" MaxLength="100"></asp:TextBox>
                        </div>
                    </td>
                    <td style="width: 50%">
                        <div class="left textright option_table_td_100" style="margin-right: 10px">
                            <span>Tên chủ sở hữu</span>
                        </div>
                        <div class="left">
                            <asp:TextBox ID="txtChuSuDung" runat="server" Width="200px" MaxLength="200"></asp:TextBox>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="left textright option_table_td_100" style="margin-right: 10px">
                            <span>Quận</span>
                        </div>
                        <div class="left">
                            <cc1:wsLstDropdownlist ID="ddlQuan" runat="server" DataTextField="NOI_DUNG" DataValueField="MA_THAM_SO"
                                AutoPostBack="True" OnSelectedIndexChanged="ddlQuan_SelectedIndexChanged" AddBlankRow="true">
                            </cc1:wsLstDropdownlist>
                        </div>
                    </td>
                    <td>
                        <div class="left textright option_table_td_100" style="margin-right: 10px">
                            <span>Phường</span>
                        </div>
                        <div class="left">
                            <cc1:wsLstDropdownlist ID="ddlPhuong" runat="server" DataTextField="NOI_DUNG" DataValueField="MA_THAM_SO"
                                AddBlankRow="true">
                            </cc1:wsLstDropdownlist>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="left textright option_table_td_100" style="margin-right: 10px">
                            <span>Đường</span>
                        </div>
                        <div class="left">
                            <asp:TextBox ID="txtDuong" runat="server" Width="300px" MaxLength="200"></asp:TextBox>
                        </div>
                    </td>
                    <td>
                        <div class="left textright option_table_td_100" style="margin-right: 10px">
                            <span>Đoạn đường</span>
                        </div>
                        <div class="left">
                            <asp:TextBox ID="txtDoanDuong" runat="server" Width="300px" MaxLength="200"></asp:TextBox>
                        </div>
                    </td>
                </tr>
            </table>
            <div class="action_bar">
                <div class="right ">
                    <cc1:wsBtnAction ID="WsBtnAction1" runat="server" LocaleText="Search" ButtonType="ButtonSearch"
                        OnClick="btnSearch_Click" OnClientClick="javascript:Dialog.showLoader();"></cc1:wsBtnAction>
                </div>
            </div>
            <cc1:wsLstListView ID="lvDSKhaoSat" runat="server" OnbtnFirst_Click="_lv_btnFirst_Click"
                OnbtnLast_Click="_lv_btnLast_Click" OnbtnNext_Click="_lv_btnNext_Click" OnbtnPrev_Click="_lv_btnPrev_Click"
                OnddlPageSize_SelectedIndexChanged="_lv_ddlPageSize_SelectedIndexChanged" OnddlPageIndex_SelectedIndexChanged="_lv_ddlPageIndex_SelectedIndexChanged"
                OnItemCommand="lvDSKhaoSat_ItemCommand">
                <LayoutTemplate>
                    <table class="data_table">
                        <tr>
                            <th style="width: 40px">
                                #
                            </th>
                            <th class="width100">
                                Ph. số
                            </th>
                            <th>
                                Địa chỉ khảo sát
                            </th>
                            <th class="width100">
                                Phục hồi
                            </th>
                        </tr>
                        <tr id="itemPlaceholder" runat="server">
                        </tr>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("RowNumber") %>' />
                        </td>
                        <td>
                            <asp:Label ID="userId" runat="server" Text='<%# Eval("SO_PHIEU") %>' />
                        </td>
                        <td style="text-align: left">
                            <asp:HyperLink ID="lkPhieuKhaoSat" runat="server" Target="_blank" Text='<%# Eval("DUONG").ToString() + ", " + Eval("DOAN_DUONG").ToString() + ", " + Eval("TEN_PHUONG").ToString() + ", " + Eval("TEN_QUAN").ToString() %>'
                                NavigateUrl='<%# "ctbangkhaosat.aspx?phieuID=" + Eval("MA_HO_SO") %>'></asp:HyperLink>
                            <asp:Panel ID="Panel1" runat="server" CssClass="tooltip" Width="350px">
                                <table style="width: 100%">
                                    <tr>
                                        <td style="width: 100px">
                                            <span>Chủ sử dụng : </span>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label ID="TitleLabel" runat="server" Font-Bold="True" Font-Names="Verdana" Font-Size="8pt"
                                                ForeColor="#006600" Text='<%# Eval("TEN_CHU_SU_DUNG") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <span>Địa chỉ : </span>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("DIA_CHI") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <span>Ngày tạo : </span>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("NGAY_KHOI_TAO") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: left">
                                            <span>Người xóa : </span>
                                        </td>
                                        <td>
                                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <cc2:HoverMenuExtender ID="HoverMenuExtender1" runat="server" PopupControlID="Panel1"
                                TargetControlID="lkPhieuKhaoSat" PopupPosition="right">
                            </cc2:HoverMenuExtender>
                        </td>
                        <td>
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/cancel.png"
                                Width="16px" Height="16px" CommandName="restore" CommandArgument='<%# Eval("MA_HO_SO") %>'
                                OnClientClick="javascript:Dialog.showLoader();" />
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr class="altrow">
                        <td>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("RowNumber") %>' />
                        </td>
                        <td>
                            <asp:Label ID="userId" runat="server" Text='<%# Eval("SO_PHIEU") %>' />
                        </td>
                        <td style="text-align: left">
                            <asp:HyperLink ID="lkPhieuKhaoSat" runat="server" Target="_blank" Text='<%# Eval("DUONG").ToString() + ", " + Eval("DOAN_DUONG").ToString() + ", " + Eval("TEN_PHUONG").ToString() + ", " + Eval("TEN_QUAN").ToString() %>'
                                NavigateUrl='<%# "ctbangkhaosat.aspx?phieuID=" + Eval("MA_HO_SO") %>'></asp:HyperLink>
                            <asp:Panel ID="Panel1" runat="server" CssClass="tooltip" Width="350px">
                                <table style="width: 100%">
                                    <tr>
                                        <td style="width: 100px">
                                            <span>Chủ sử dụng : </span>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label ID="TitleLabel" runat="server" Font-Bold="True" Font-Names="Verdana" Font-Size="8pt"
                                                ForeColor="#006600" Text='<%# Eval("TEN_CHU_SU_DUNG") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <span>Địa chỉ : </span>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("DIA_CHI") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <span>Ngày tạo : </span>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("NGAY_KHOI_TAO") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <span>Người xóa : </span>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <cc2:HoverMenuExtender ID="HoverMenuExtender1" runat="server" PopupControlID="Panel1"
                                TargetControlID="lkPhieuKhaoSat" PopupPosition="right">
                            </cc2:HoverMenuExtender>
                        </td>
                        <td>
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/cancel.png"
                                Width="16px" Height="16px" CommandName="restore" CommandArgument='<%# Eval("MA_HO_SO") %>'
                                OnClientClick="javascript:Dialog.showLoader();" />
                        </td>
                    </tr>
                </AlternatingItemTemplate>
                <EmptyDataTemplate>
                    <table class="data_table">
                        <tr>
                            <th style="width: 40px">
                                #
                            </th>
                            <th class="width100">
                                Ph. số
                            </th>
                            <th>
                                Địa chỉ khảo sát
                            </th>
                            <th class="width100">
                                Phục hồi
                            </th>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <label runat="server"><%= base.getValueFromLocale("NoData")%></label>
                            </td>
                        </tr>
                    </table>
                </EmptyDataTemplate>
            </cc1:wsLstListView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="phd_footer" runat="server">
</asp:Content>